package org.noote.libs.assistant.agent.majordome;

import java.util.ArrayList;

import org.noote.libs.assistant.analyse.Phrase;

public class Module {

	private String m_sModuleName = "?";
	private ArrayList<String> m_dependencies = new ArrayList<String>();
	
	public Module()
	{
		setName("unknown");
	}
	
	protected boolean setName(String sName)
	{
		if(sName.length() == 0) return false;
		
		m_sModuleName = sName;
		
		return true;
	}
	
	public String getName()
	{
		return m_sModuleName;
	}
	
	protected boolean addDependency(String sDep)
	{
		if(m_dependencies.indexOf(sDep)>-1)
			return false;
		
		m_dependencies.add(sDep);
		
		return true;
	}
	
	public ArrayList<String> getDependencies()
	{
		return m_dependencies;
	}
	
	public boolean attachDependency(String sName, Module mModule)
	{
		return false;
	}
	
	public boolean responce(Phrase phrase, String sText)
	{
		return false;
	}
}
